package com.PVZ.model.weapon;

import com.PVZ.model.Entity;
import com.PVZ.model.bullet.Bean;
import com.PVZ.model.emuns.MoveType;
import lombok.Getter;
import lombok.Setter;

import java.awt.*;

/**
 * Created by @Author: kabuda on @Date: 2021/5/19 16:41
 */
@Getter
@Setter
public class PeaGun extends Weapon{

    public PeaGun(int coolTime, int shootNum, Point point, MoveType moveType){
        this.setShootNum(shootNum);
        this.setCoolDown(coolTime);
        this.setAttackFiled(-1);
        this.setBullet(new Bean(point,moveType));
    }

    public PeaGun(int coolTime, int shootNum, Point point, MoveType moveType,Point reservePoint) {
        this.setShootNum(shootNum);
        this.setCoolDown(coolTime);
        this.setAttackFiled(10);
        Bean bean = new Bean(point, moveType);
        bean.setReviseX(reservePoint.x);
        bean.setReviseY(reservePoint.y);
        this.setBullet(bean);
    }

}
